﻿namespace SIG.Model
{
    using Resources.Admin;
    using SIG.Core;

    public partial class Link : AuditableEntity<int>
    {

        public Link()
        {
            EntityName = EntityNames.Link;         
        }

      
        public string Title { get; set; }
        public string WebLink { get; set; }
        public string LogoUrl { get; set; }    
        public int Importance { get; set; }  
        public string Description { get; set; }   
        public bool Active { get; set; } 
        public int CategoryId { get; set; }

         public virtual LinkCategory LinkCategory { get; set; }
         public string CategoryTitle
         {
             get
             {
                 if (this.LinkCategory != null)
                 {
                     return this.LinkCategory.Title;
                 }
                 return string.Empty;
             }
         }
    }
}
